package com.zzu.model;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;

public class Course {
    private String coId;
    private String coName;
    private int coCredit;//学分
    @JsonFormat(pattern = "yyyy-mm-dd")//将属性值格式化
    private Date coStartTime;
    @JsonFormat(pattern = "yyyy-mm-dd")//将属性值格式化
    private Date coEndTime;//结束时间
    private String coSchoolTime;
    private String tId;//教师编号
    private String tName;//教师姓名
    private String mId;//管理员编号

    @Override
    public String toString() {
        return "Course{" +
                "coId='" + coId + '\'' +
                ", coName='" + coName + '\'' +
                ", credit=" + coCredit +
                ", cStartTime=" + coStartTime +
                ", cEndTime=" + coEndTime +
                ", coSchoolTime='" + coSchoolTime + '\'' +
                ", tId='" + tId + '\'' +
                ", tName='" + tName + '\'' +
                ", mId='" + mId + '\'' +
                '}';
    }

    public String getCoId() {
        return coId;
    }

    public void setCoId(String coId) {
        this.coId = coId;
    }

    public String getCoName() {
        return coName;
    }

    public void setCoName(String coName) {
        this.coName = coName;
    }

    public int getCoCredit() {
        return coCredit;
    }

    public void setCoCredit(int coCredit) {
        this.coCredit = coCredit;
    }

    public Date getCoStartTime() {
        return coStartTime;
    }

    public void setCoStartTime(Date coStartTime) {
        this.coStartTime = coStartTime;
    }

    public Date getCoEndTime() {
        return coEndTime;
    }

    public void setCoEndTime(Date coEndTime) {
        this.coEndTime = coEndTime;
    }

    public String getCoSchoolTime() {
        return coSchoolTime;
    }

    public void setCoSchoolTime(String coSchoolTime) {
        this.coSchoolTime = coSchoolTime;
    }

    public String gettId() {
        return tId;
    }

    public void settId(String tId) {
        this.tId = tId;
    }

    public String gettName() {
        return tName;
    }

    public void settName(String tName) {
        this.tName = tName;
    }

    public String getmId() {
        return mId;
    }

    public void setmId(String mId) {
        this.mId = mId;
    }
}
